package com.alibaba.product.mapper;

import com.alibaba.product.domain.Product;
import com.alibaba.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Amber
 * @since 2022-06-20
 */
public interface ProductMapper extends BaseMapper<Product> {

    /**
     * 批量下架
     * @param offsaletime
     * @param ids
     */
    void offsale(@Param("offsaletime") Date offsaletime, @Param("ids") Long[] ids);
}
